package com.pie4cloud.pie.job.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pie4cloud.pie.common.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * 
 *
 * @author feilei
 * @date 2022-01-10 00:54:34
 */
@Data
@TableName("t_config_ftp")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "")
@Entity
@Table(name="T_CONFIG_FTP")
public class ConfigFtp extends BaseEntity {

    /**
     * ftp主键
     */
	@Id
	@TableId(value = "ftp_id", type = IdType.ASSIGN_ID)
	@GenericGenerator(name="snowflakeId", strategy="com.pie4cloud.pie.jpa.id.GenerateSnowflakeId")
	@GeneratedValue(generator="snowflakeId")
    @ApiModelProperty(value="ftp主键")
    private Long ftpId;

    /**
     * 地址
     */
	@Column(name = "ftp_address",length = 200)
	@ApiModelProperty(value="地址")
    private String ftpAddress;

    /**
     * 用户名
     */
    @ApiModelProperty(value="用户名")
	@Column(name = "ftp_user_name",length = 200)
	private String ftpUserName;

    /**
     * 密码
     */
    @ApiModelProperty(value="密码")
	@Column(name = "ftp_pwd",length = 200)
	private String ftpPwd;

    /**
     * 端口
     */
    @ApiModelProperty(value="端口")
	@Column(name = "ftp_port",length = 200)
	private Integer ftpPort;

    /**
     * 类型
     */
	@Column(name = "ftp_type",length = 200)
	@ApiModelProperty(value="类型")
    private Long ftpType;

    /**
     * 网络环境
     */
    @ApiModelProperty(value="网络环境")
	@Column(name = "ftp_network",length = 200)
	private Boolean ftpNetwork;

	/**
	 * ftp名称
	 */
	@ApiModelProperty(value="ftp名称")
	@Column(name = "ftp_name",length = 200)
	private String ftpName;


}
